package Java2;

import java.util.*;
class Palindrome{ 
	public static void main(String args[]){ 

		Scanner input = new Scanner(System.in);
		int num;
		System.out.println("Enter the Interger to check whether palindrom or not");
		num = input.nextInt();
		int temp,pal = 0;
		while(num > 0)
		{
			temp = num%10;
			pal = pal*10 + pal;
			num = num/10;
		}
		if(pal == num)
		{
			System.out.println("The Integer is Palindrome");
		}
		else
		{
			System.out.println("The Integer is Palindrome");
		}
	}
}